package cn.smbms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.smbms.bean.model.RoleAuthority;
import cn.smbms.bean.vo.RoleAuthorityVo;

public interface IRoleAuthorityDao {
	//多条件查询
	public List<RoleAuthority> getRoleAuthorityByRoleAuthorityVo(RoleAuthorityVo roleAuthorityVo);
	//添加角色权限
	public int add(RoleAuthority roleAuthority);
	//根据角色权限ID查询用户信息
	public RoleAuthority findRoleAuthorityByRoleId(@Param("roleAuthorityId")Integer roleAuthorityId);
	//更新角色权限
	public int update(RoleAuthority roleAuthority);
	//删除角色权限
	public int delete(@Param("roleAuthorityId")Integer roleAuthorityId);
	//查询用户权限是否重复
	public RoleAuthority fetchRoleAuthority(@Param("roleId")Integer roleId,@Param("functionAuthorityId")Integer functionAuthorityId);
	//获取总页
	public RoleAuthorityVo getTotalPages(RoleAuthorityVo roleAuthorityVo);
}
